package com.binc.testspring.common.pojo;

/**
 * 暂时没啥用
 * @param <T>
 */
public class ResResult<T> {
    private String msg;
    private Boolean succeed = true;
    private T data;
    private String code = "200";
    private String requestId;

    public ResResult() {
    }

    public Boolean Succeed() {
        return this.succeed;
    }

    public String getMsg() {
        return this.msg;
    }

    public Boolean getSucceed() {
        return this.succeed;
    }

    public T getData() {
        return this.data;
    }

    public String getCode() {
        return this.code;
    }

    public String getRequestId() {
        return this.requestId;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setSucceed(Boolean succeed) {
        this.succeed = succeed;
    }

    public void setData(T data) {
        this.data = data;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof ResResult)) {
            return false;
        } else {
            ResResult<?> other = (ResResult)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label71: {
                    Object this$msg = this.getMsg();
                    Object other$msg = other.getMsg();
                    if (this$msg == null) {
                        if (other$msg == null) {
                            break label71;
                        }
                    } else if (this$msg.equals(other$msg)) {
                        break label71;
                    }

                    return false;
                }

                Object this$succeed = this.getSucceed();
                Object other$succeed = other.getSucceed();
                if (this$succeed == null) {
                    if (other$succeed != null) {
                        return false;
                    }
                } else if (!this$succeed.equals(other$succeed)) {
                    return false;
                }

                label57: {
                    Object this$data = this.getData();
                    Object other$data = other.getData();
                    if (this$data == null) {
                        if (other$data == null) {
                            break label57;
                        }
                    } else if (this$data.equals(other$data)) {
                        break label57;
                    }

                    return false;
                }

                Object this$code = this.getCode();
                Object other$code = other.getCode();
                if (this$code == null) {
                    if (other$code != null) {
                        return false;
                    }
                } else if (!this$code.equals(other$code)) {
                    return false;
                }

                Object this$requestId = this.getRequestId();
                Object other$requestId = other.getRequestId();
                if (this$requestId == null) {
                    if (other$requestId == null) {
                        return true;
                    }
                } else if (this$requestId.equals(other$requestId)) {
                    return true;
                }

                return false;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof ResResult;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $msg = this.getMsg();
          result = result * 59 + ($msg == null ? 43 : $msg.hashCode());
        Object $succeed = this.getSucceed();
        result = result * 59 + ($succeed == null ? 43 : $succeed.hashCode());
        Object $data = this.getData();
        result = result * 59 + ($data == null ? 43 : $data.hashCode());
        Object $code = this.getCode();
        result = result * 59 + ($code == null ? 43 : $code.hashCode());
        Object $requestId = this.getRequestId();
        result = result * 59 + ($requestId == null ? 43 : $requestId.hashCode());
        return result;
    }

    public String toString() {
        return "RestResult(msg=" + this.getMsg() + ", succeed=" + this.getSucceed() + ", data=" + this.getData() + ", code=" + this.getCode() + ", requestId=" + this.getRequestId() + ")";
    }
}
